<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>提款明细</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Runmenanalysis/withdrawal_details')}">
        跑客姓名：<input type="text" name="formget[dispatch_name]" style="width: 100px;" value="{$formget.dispatch_name}">&nbsp;
        跑客电话:<input type="text" name="formget[mobile]" style="width: 100px;" value="{$formget.mobile}">&nbsp;
        转款时间：
        <input type="text" name="formget[pay_time]" class="js-date" value="{$formget.pay_time|default=''}" style="width:100px;" autocomplete="off">
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    总数：{$total_count}人
    <form method="post" class="js-ajax-form">
        <!--        <div class="table-actions">
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/sign',array('sign'=>1))}" data-subcheck="true">签约</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelsign',array('unsign'=>1))}" data-subcheck="true">取消签约</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/incubator',array('incubator'=>1))}" data-subcheck="true">领取保温箱</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/freezee',array('freezee'=>1))}" data-subcheck="true" data-msg="您确定冻结账户吗？">冻结</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelfreezee',array('cancelfreezee'=>1))}" data-subcheck="true" data-msg="您确定启用账户吗？">启用</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelaudit',array('audit'=>1))}" data-subcheck="true">取消审核</button>
                </div>-->
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>所属团队</th>
                <th>跑客姓名</th>
                <th>跑客电话</th>
                <th>提款金额</th>
                <th>提款时间</th>
                <th>提款状态</th>
                <th>转款时间</th>
                <th>余额</th>
                <th>说明</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $company = array("1"=>'全部跑客',"2"=>'大和跑客',"3"=>'直属跑客',"4"=>'社会跑客',5=>'校园跑客');
                $status = array("-1"=>'全部',"0"=>'未处理',"1"=>'已审核',"2"=>'已汇款')
            </php>
            <foreach name="lists" item="vo" key="k">
                <tr>
                    <td align="center">{$k+1}</td>
                    <td>{$company[$vo[company_id]]}</td>
                    <td>{$vo.dispatch_name}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.cash_amount}</td>
                    <!--       <td>{$dispatchs[$vo['dispatch_id']]['job_number']}</td>
                           <td>{$dispatchs[$vo['dispatch_id']]['dispatch_name']}</td>
                           <td>{$dispatchs[$vo['dispatch_id']]['mobile']}</td>-->
                    <td>{$vo.cash_time}</td>
                    <td>{$status[$vo[status]]}</td>
                    <td>{$vo.pay_time}</td>
                    <td>{$vo[dispatch_id]|get_dispatch_balance_amount=$vo[cash_record_id]}</td>
                    <td>{$vo.remark}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($lists)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>